import * as types from './type';

/**
 * saga事件
 * @returns {{type: string}}
 * @constructor
 */
export const SAGA_QueryUserList = {
    type: types.ADMIN_QUERY_USER
}


/**
 * 普通Reducer事件
 * @param value
 * @returns {{type: string, value: InitUserInfo.props}}
 * @constructor
 */
export const InitUserInfo = (value) => ({
    type: types.ADMIN_INIT_TOTAL_USER,
    value
})
export const InitUserInfo4Obj = (value) => ({
    type: types.VALUE_IS_OBJECT,
    value
})
export const setUserInfoCurrentPage = (value) => ({
    type: types.ADMIN_USER_INFO_CURRENT_PAGE,
    value
})
export const setUserInfoTotalPage = (value) => ({
    type: types.ADMIN_USER_INFO_TOTAL_PAGE,
    value
})
export const setUserInfoPageSize = (value) => ({
    type: types.ADMIN_USER_INFO_PAGE_SIZE,
    value
})
